import random

my_list = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'a', 'b', 'c', 'd', 'e', 'f']
list2 = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0']


def random_sample():
    """
    随机数16位
    :return:
    """
    random_str = ''.join(random.sample(my_list, 16)) + ''.join(random.sample(my_list, 16))
    return random_str


def random_sample2():
    """
    随机6位数
    :return:
    """
    random_str = ''.join(random.sample(list2, 6))
    return random_str

